import {request} from './request'

export function getCategory() {
    return request({
        url: '/api/goods'
    })
}

// sales recommend price comments_count
export function getCategoryGoods(order = 'sales', cid = 0, page = 1) {
    return request({
        url: `/api/goods?${order}=1&category_id=${cid}&page=${page}`
    })
}